package com.lzhsite.technology.designPattern.composite.FolderFileImplement;

import java.util.List;

public class File implements Root
{
    private String name;

    public File(String name)
    {
        this.name = name;
    }

    public boolean addfile(Root file)
    {
        return false;
    }

    public boolean removeFile(Root file)
    {
        return false;
    }

    public List<Root> getFiles()
    {
        return null;
    }

    public void display()
    {
        System.out.println("   |   " + name);
    }

}
